/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nationsim;

import java.awt.BorderLayout;
import java.awt.MenuBar;
import javax.swing.JFrame;
import nationsim.components.GameEngine;
import nationsim.ui.DisplayPanel;
import nationsim.ui.UIMenuBar;
import nationsim.ui.UIPanel;

/**
 *
 * @author CJ
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        //TODO Implement Basic Window

        //Basic Init
        JFrame gameFrame = new JFrame("NationSim by Cj + Eric");
        gameFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        gameFrame.setLayout(new BorderLayout());

        //Add Game Frame and Ui Frame and UIMEnu
        UIMenuBar uiBar = new UIMenuBar();
        DisplayPanel dPanel = new DisplayPanel();
        UIPanel uiPanel = new UIPanel();
        gameFrame.add(dPanel, BorderLayout.WEST);
        gameFrame.add(uiPanel, BorderLayout.EAST);

        gameFrame.setJMenuBar(uiBar);

        //Init GameEngine
        GameEngine engine = new GameEngine(dPanel, uiPanel, uiBar);

        //More Init
        gameFrame.pack();
        gameFrame.setVisible(true);
        gameFrame.setFocusable(true);
        
    }

}
